package mmoon.mmoonstory.enchantments;

import mmoon.mmoonstory.interfaces.InitEnchantment;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnumEnchantmentType;
import net.minecraft.inventory.EntityEquipmentSlot;

public class EnchantmentPowerfulDig extends Enchantment implements InitEnchantment {
    public static final String ObjID = "powerful_dig";

    public EnchantmentPowerfulDig(Rarity rarityIn, EnumEnchantmentType typeIn, EntityEquipmentSlot[] slots) {
        super(rarityIn, typeIn, slots);
        this.init(ObjID);
    }

    public EnchantmentPowerfulDig() {
        this(
                Rarity.VERY_RARE,
                EnumEnchantmentType.ALL,
                new EntityEquipmentSlot[] {
                        EntityEquipmentSlot.MAINHAND,
                        EntityEquipmentSlot.OFFHAND,
                        EntityEquipmentSlot.HEAD,
                        EntityEquipmentSlot.CHEST,
                        EntityEquipmentSlot.LEGS,
                        EntityEquipmentSlot.FEET
                });
    }

    @Override
    public int getMinLevel() {
        return 1;
    }

    @Override
    public int getMaxLevel() {
        return 10;
    }
}
